package com.base.util;

import java.util.Date;

public class TimeDifferenceUtil {
  public int timeDifference(Date startD,Date endD){
	  int timeDifference = 0;
	  long difTime = Math.abs(endD.getTime()-startD.getTime());
	  int monTime = new Long(difTime).intValue();
	  timeDifference = monTime/365/12/30;
	   return timeDifference;
	  
  }
}
